#include "stdafx.h"
#include "FileDeviceHandleRegular.h"
#include "FileDescriptorReal.h"

namespace ja2{ namespace vfs
{
	FileDescriptorReal::FileDescriptorReal(boost::filesystem::path const &File, boost::filesystem::path const &RealPath)
		: FileDescriptor(File), m_RealPath(RealPath)
	{
	}

	FileDeviceHandlePtr_t FileDescriptorReal::do_get_file_handle(std::ios_base::openmode Mode) const
	{
		return FileDeviceHandlePtr_t(new FileDeviceHandleRegular(m_RealPath, Mode));
	}
} /*vfs*/} /*ja2*/
